.backpack-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .backpack-header {
    margin-bottom: 20px;
    background-image: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-content h1 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(to right, #f5f7fa, #c3cfe2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .player-info {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .player-details {
    display: flex;
    flex-direction: column;
  }
  
  .player-details h2 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
  }
  
  .player-stats {
    display: flex;
    gap: 10px;
  }
  
  .backpack-control {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  
  .search-input {
    flex: 1;
    min-width: 200px;
  }
  
  .filter-select {
    width: 150px;
  }
  
  .view-toggle {
    display: flex;
    align-items: center;
  }
  
  .nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .nft-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
  }
  
  .nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .nft-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .nft-card:hover .nft-image {
    transform: scale(1.05);
  }
  
  .rarity-tag {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .nft-info {
    padding: 15px;
  }
  
  .nft-name {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
  }
  
  .nft-description {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .nft-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nft-id {
    color: #999;
    font-size: 0.9rem;
  }
  
  .image-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f5f7fa;
    color: #909399;
    font-size: 2rem;
  }
  
  .load-more {
    display: flex;
    justify-content: center;
    margin: 30px 0;
  }
  
  /* NFT详情样式 */
  .nft-details {
    padding: 10px;
  }
  
  .details-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .details-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
  }
  
  .details-info {
    flex: 1;
  }
  
  .details-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  .details-rarity {
    margin-bottom: 15px;
  }
  
  .details-description {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .details-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }
  
  .meta-item {
    display: flex;
    gap: 5px;
  }
  
  .meta-label {
    font-weight: bold;
    color: #666;
  }
  
  .details-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .attribute-card {
    text-align: center;
  }
  
  .attribute-header {
    font-weight: bold;
  }
  
  .attribute-value {
    font-size: 1.5rem;
    margin: 5px 0;
  }
  
  .attribute-rarity {
    font-size: 0.8rem;
    color: #909399;
  }
  
  .details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  /* 稀有度样式 */
  .rarity-common {
    border: 1px solid #909399;
  }
  
  .rarity-uncommon {
    border: 1px solid #67c23a;
  }
  
  .rarity-rare {
    border: 1px solid #e6a23c;
  }
  
  .rarity-epic {
    border: 1px solid #f56c6c;
  }
  
  .rarity-legendary {
    border: 2px solid #9932CC;
    background: linear-gradient(to bottom right, rgba(153, 50, 204, 0.05), rgba(153, 50, 204, 0.1));
  }
  
  @media (max-width: 768px) {
    .backpack-control {
      flex-direction: column;
    }
    
    .details-header {
      flex-direction: column;
    }
    
    .details-image {
      width: 100%;
      height: auto;
    }
  }